package Schedule::Chronic::Distributed::PrerequisiteTask;

=head1 NAME

Schedule::Chronic::Distributed::PrerequisiteTask - Task/Prerequisite Relation Class

=head1 SYNOPSIS

use Schedule::Chronic::Distributed::PrerequisiteTask;

.. TODO.. 

=head1 DESCRIPTION

Class mapping Tasks to pre-requisites based on required status.

=head1 METHODS

=head2 ACCESSORS

=over

=item task 

=item requisite

=item requisite_state

=item latency

=back

=cut

use strict;

use base qw(Schedule::Chronic::Distributed::DBI);

__PACKAGE__->table('prerequisite_tasks');
__PACKAGE__->table_alias('prerequisite_task');
__PACKAGE__->columns(All => qw/task requisite requisite_state latency/);
__PACKAGE__->columns(Primary => qw/task requisite/);

__PACKAGE__->has_a( task => 'Schedule::Chronic::Distributed::Task');
__PACKAGE__->has_a( requisite => 'Schedule::Chronic::Distributed::Task');


=head1 SEE ALSO

Schedule::Chronic::Distributed

Schedule::Chronic::Distributed::Task

Schedule::Chronic::Distributed::Command

=head1 AUTHOR

aaron trevena, E<lt>aaron.trevena@gmail.comE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2006 by Aaron Trevena, Aviation Briefing Ltd

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.

=cut

1;

